package com.manage.project.biz.mapper;

import com.manage.project.biz.domain.CivilEnginneeringRegularCheck;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * 土建定期检查Mapper接口
 *
 * @author 小赵
 * @date 2022-04-25
 */
@Repository
public interface CivilEnginneeringRegularCheckMapper
{



    /*获取分项设施的最大值*/
    public int getMaxByName(@Param("arg0") String tunnelName, @Param("arg1") String facilityName, @Param("arg2")Date inspectionDate);
    public List<CivilEnginneeringRegularCheck> getByNameAndDate(@Param("arg0") String tunnelName, @Param("arg1") String facilityName, @Param("arg2")Date inspectionDate);
    /**
     * 查询土建结构定期检查
     *
     * @param regularCheckId 土建结构定期检查主键
     * @return 土建结构定期检查
     */
    public CivilEnginneeringRegularCheck selectCivilEnginneeringRegularCheckByRegularCheckId(Long regularCheckId);

    /**
     * 查询土建结构定期检查
     *
     * @param civilEnginneeringRegularCheck 土建结构定期检查
     * @return 土建结构定期检查
     */
    public List<CivilEnginneeringRegularCheck> selectCivilEnginneeringRegularCheckList(CivilEnginneeringRegularCheck civilEnginneeringRegularCheck);

    /**
     * 新增土建结构定期检查
     *
     * @param civilEnginneeringRegularCheck 土建结构定期检查
     * @return 结果
     */
    public int insertCivilEnginneeringRegularCheck(CivilEnginneeringRegularCheck civilEnginneeringRegularCheck);

    /**
     * 修改土建结构定期检查
     *
     * @param civilEnginneeringRegularCheck 土建结构定期检查
     * @return 结果
     */
    public int updateCivilEnginneeringRegularCheck(CivilEnginneeringRegularCheck civilEnginneeringRegularCheck);

    /**
     * 删除土建结构定期检查
     *
     * @param regularCheckId 土建结构定期检查
     * @return 结果
     */
    public int deleteCivilEnginneeringRegularCheckByRegularCheckId(Long regularCheckId);

    /**
     * 批量删除土建结构定期检查
     *
     * @param regularCheckIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCivilEnginneeringRegularCheckByRegularCheckIds(Long[] regularCheckIds);
}
